onload = () => {
    loadCSS("../css/fontello.css", "bootstrap5-icon");
    loadCSS("../css/bootstrap5.min.css", "bootstrap5");
    loadScript("../js/bootstrap5.bundle.min.js")
        .then(() => loadScript("../js/crud.js")).then(() => {
        let operationOperator = new Crud({
            module: "operation",
            search: [{"caption": "Name", "type": "text", "name": "name", class: "col-3"}],
            listField: [{"caption": "ID", "field": "operationId"}, {"caption": "Name", "field": "name"},{"caption": "Description", "field": "description"}],
            editFields: [
                {caption: "Name", "name": "name", "placeHolder": "", "required": "required"},
                {caption: "Description", "name": "description"}
            ]
        });
        operationOperator.init()
    }).catch((err) => console.error(err));
}
